package pe.com.empresa.datos.dominio;

import java.util.ArrayList;
import java.util.List;

public class PersonaJuridicaExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public PersonaJuridicaExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdPersonaIsNull() {
            addCriterion("idPersona is null");
            return (Criteria) this;
        }

        public Criteria andIdPersonaIsNotNull() {
            addCriterion("idPersona is not null");
            return (Criteria) this;
        }

        public Criteria andIdPersonaEqualTo(Integer value) {
            addCriterion("idPersona =", value, "idPersona");
            return (Criteria) this;
        }

        public Criteria andIdPersonaNotEqualTo(Integer value) {
            addCriterion("idPersona <>", value, "idPersona");
            return (Criteria) this;
        }

        public Criteria andIdPersonaGreaterThan(Integer value) {
            addCriterion("idPersona >", value, "idPersona");
            return (Criteria) this;
        }

        public Criteria andIdPersonaGreaterThanOrEqualTo(Integer value) {
            addCriterion("idPersona >=", value, "idPersona");
            return (Criteria) this;
        }

        public Criteria andIdPersonaLessThan(Integer value) {
            addCriterion("idPersona <", value, "idPersona");
            return (Criteria) this;
        }

        public Criteria andIdPersonaLessThanOrEqualTo(Integer value) {
            addCriterion("idPersona <=", value, "idPersona");
            return (Criteria) this;
        }

        public Criteria andIdPersonaIn(List<Integer> values) {
            addCriterion("idPersona in", values, "idPersona");
            return (Criteria) this;
        }

        public Criteria andIdPersonaNotIn(List<Integer> values) {
            addCriterion("idPersona not in", values, "idPersona");
            return (Criteria) this;
        }

        public Criteria andIdPersonaBetween(Integer value1, Integer value2) {
            addCriterion("idPersona between", value1, value2, "idPersona");
            return (Criteria) this;
        }

        public Criteria andIdPersonaNotBetween(Integer value1, Integer value2) {
            addCriterion("idPersona not between", value1, value2, "idPersona");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaIsNull() {
            addCriterion("entidadBancaria is null");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaIsNotNull() {
            addCriterion("entidadBancaria is not null");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaEqualTo(String value) {
            addCriterion("entidadBancaria =", value, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaNotEqualTo(String value) {
            addCriterion("entidadBancaria <>", value, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaGreaterThan(String value) {
            addCriterion("entidadBancaria >", value, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaGreaterThanOrEqualTo(String value) {
            addCriterion("entidadBancaria >=", value, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaLessThan(String value) {
            addCriterion("entidadBancaria <", value, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaLessThanOrEqualTo(String value) {
            addCriterion("entidadBancaria <=", value, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaLike(String value) {
            addCriterion("entidadBancaria like", value, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaNotLike(String value) {
            addCriterion("entidadBancaria not like", value, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaIn(List<String> values) {
            addCriterion("entidadBancaria in", values, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaNotIn(List<String> values) {
            addCriterion("entidadBancaria not in", values, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaBetween(String value1, String value2) {
            addCriterion("entidadBancaria between", value1, value2, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andEntidadBancariaNotBetween(String value1, String value2) {
            addCriterion("entidadBancaria not between", value1, value2, "entidadBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaIsNull() {
            addCriterion("cuentaBancaria is null");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaIsNotNull() {
            addCriterion("cuentaBancaria is not null");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaEqualTo(String value) {
            addCriterion("cuentaBancaria =", value, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaNotEqualTo(String value) {
            addCriterion("cuentaBancaria <>", value, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaGreaterThan(String value) {
            addCriterion("cuentaBancaria >", value, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaGreaterThanOrEqualTo(String value) {
            addCriterion("cuentaBancaria >=", value, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaLessThan(String value) {
            addCriterion("cuentaBancaria <", value, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaLessThanOrEqualTo(String value) {
            addCriterion("cuentaBancaria <=", value, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaLike(String value) {
            addCriterion("cuentaBancaria like", value, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaNotLike(String value) {
            addCriterion("cuentaBancaria not like", value, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaIn(List<String> values) {
            addCriterion("cuentaBancaria in", values, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaNotIn(List<String> values) {
            addCriterion("cuentaBancaria not in", values, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaBetween(String value1, String value2) {
            addCriterion("cuentaBancaria between", value1, value2, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andCuentaBancariaNotBetween(String value1, String value2) {
            addCriterion("cuentaBancaria not between", value1, value2, "cuentaBancaria");
            return (Criteria) this;
        }

        public Criteria andNumeroRucIsNull() {
            addCriterion("numeroRuc is null");
            return (Criteria) this;
        }

        public Criteria andNumeroRucIsNotNull() {
            addCriterion("numeroRuc is not null");
            return (Criteria) this;
        }

        public Criteria andNumeroRucEqualTo(String value) {
            addCriterion("numeroRuc =", value, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucNotEqualTo(String value) {
            addCriterion("numeroRuc <>", value, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucGreaterThan(String value) {
            addCriterion("numeroRuc >", value, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucGreaterThanOrEqualTo(String value) {
            addCriterion("numeroRuc >=", value, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucLessThan(String value) {
            addCriterion("numeroRuc <", value, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucLessThanOrEqualTo(String value) {
            addCriterion("numeroRuc <=", value, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucLike(String value) {
            addCriterion("numeroRuc like", value, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucNotLike(String value) {
            addCriterion("numeroRuc not like", value, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucIn(List<String> values) {
            addCriterion("numeroRuc in", values, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucNotIn(List<String> values) {
            addCriterion("numeroRuc not in", values, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucBetween(String value1, String value2) {
            addCriterion("numeroRuc between", value1, value2, "numeroRuc");
            return (Criteria) this;
        }

        public Criteria andNumeroRucNotBetween(String value1, String value2) {
            addCriterion("numeroRuc not between", value1, value2, "numeroRuc");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}